package com.sg.service.biz.calc.nb;

import cn.hutool.core.bean.BeanUtil;
import com.sg.dto.biz.calc.req.AddAcceptFieldReqDto;
import com.sg.dto.biz.calc.req.ImplementNineReceivingFieldReqDto;
import com.sg.dto.biz.calc.res.AddAcceptFieldRespDto;
import com.sg.dto.biz.calc.res.ImplementNineReceivingFieldRespDto;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

/**
 * @author ： 手工接入方法
 * @version 1.0
 * @since 2022/5/28 15:32
 */
@Service
public class NbTask {
    /**
     * code:receptionService
     * name:M3-默认赋值0
     * desc:undefined
     * gen by moon at 7/18/2023, 10:27:10 AM
     **/
    @Trace(operationName = "M3-默认赋值0")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public ImplementOutputParametersRespDto implementOutputParameters(ImplementOutputParametersReqDto reqDto) {
        return BeanUtil.toBean(reqDto, ImplementOutputParametersRespDto.class);
    }

    /**
     * code:receptionService
     * name:进度值是否显示（第一行）
     * desc:undefined
     * gen by moon at 7/18/2023, 10:27:18 AM
     **/
    @Trace(operationName = "进度值是否显示（第一行）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public AddOutputParametersRespDto addOutputParameters(AddOutputParametersReqDto reqDto) {
        return BeanUtil.toBean(reqDto, AddOutputParametersRespDto.class);
    }

    /**
     * code:receptionService
     * name:约定出参：进度值后端元素
     * desc:undefined
     * gen by moon at 10/13/2023, 12:10:11 AM
     **/
    @Trace(operationName = "约定出参：进度值后端元素")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public AddAcceptFieldRespDto addAcceptField(AddAcceptFieldReqDto reqDto) {
        return BeanUtil.toBean(reqDto, AddAcceptFieldRespDto.class);
    }

    /**
     * code:receptionService
     * name:M4-接收入参字段
     * desc:undefined
     * gen by moon at 4/29/2024, 3:21:08 AM
     **/
    @Trace(operationName = "M4-接收入参字段")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public ImplementNineReceivingFieldRespDto implementNineReceivingField(ImplementNineReceivingFieldReqDto reqDto) {
        return BeanUtil.toBean(reqDto, ImplementNineReceivingFieldRespDto.class);
    }
    //手工接入方法
}
